package com.glut.forum.bean.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 点赞表
 * </p>
 *
 * @author jobob
 * @since 2021-09-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TbLike extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "item_id", type = IdType.AUTO)
    private Integer itemId;

    private String itemCode;

    /**
     * 点赞者
     */
    private String userCode;

    /**
     * 被点赞的评论或者文章code
     */
    private String likedCode;

    /**
     * 点赞类型（0 点赞文章， 1 点赞评论）
     */
    private Integer likeType;

    /**
     *  点赞时间
     */
    private LocalDateTime likeTime;


}
